package net.pulseproject.commons.misc;

import java.util.TimerTask;

public class TimerTaskWrapperX extends TimerTask {

	private final TimerListener listener;
	
	public TimerTaskWrapperX(final TimerListener listener) {
		this.listener = listener;
	}

	@Override
	public final void run() {
		this.listener.onTimerComplete();
	}

	public interface TimerListener {
		void onTimerComplete();
	}
	
}
